<%@ page import="com.dzzw.Dao.AdminDao" %>
<%@ page import="java.awt.*" %>
<%@ page import="com.dzzw.Model.Admin" %>
<%@ page import="java.util.List" %>
<%--
  Created by IntelliJ IDEA.
  User: 10391
  Date: 2021/3/7
  Time: 22:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix = "c" %>
<%
    int admin_id = Integer.parseInt(request.getParameter("admin_id"));
    List<Admin> adminlist = AdminDao.FindAdminById(admin_id);
    request.setAttribute("adminlist",adminlist);
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table>
        <tr>
            <td>管理员 ID</td>
            <td>管理员账号</td>
            <td>管理员姓名</td>
            <td>管理员密码</td>
        </tr>
        <c:forEach items="${adminlist}" var="admin">
            <tr>
                <td>${admin.admin_id}</td>
                <td>${admin.admin_actnumber}</td>
                <td>${admin.admin_name}</td>
                <td>${admin.admin_password}</td>
                <td colspan="2" align="center"><a href="Admin.jsp"><input type="button" value="返  回"></a></td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
